package com.calvin.study.entity;

import java.util.ArrayList;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee {

	private Long id;

	private String userName;

	private Integer age;

	private Integer salary;

	public static List<Employee> getEmployeeData() {
		List<Employee> empList = new ArrayList<Employee>();
		empList.add(new Employee(1001l, "刘强东", 42, 4800));
		empList.add(new Employee(1002l, "马化腾", 41, 3500));
		empList.add(new Employee(1003l, "马云", 45, 7800));
		empList.add(new Employee(1004l, "罗永浩", 45, 6800));
		empList.add(new Employee(1008l, "雷军", 24, 2500));
		empList.add(new Employee(1005l, "雷军", 44, 5800));
		empList.add(new Employee(1006l, "王弎拾", 35, 8200));
		empList.add(new Employee(1007l, "刘神秘", 35, 5200));
		return empList;
	}

	public Employee(Long id, String userName) {
		super();
		this.id = id;
		this.userName = userName;
	}
}
